Skip to content

Conversation

@srowen
Copy link
Member

@srowen srowen commented Nov 18, 2016

What changes were proposed in this pull request?

Just adds close() + Closeable as a synonym for stop(). This makes it usable in Java in try-with-resources, as suggested by @ash211 (Closeable extends AutoCloseable BTW)

How was this patch tested?

Existing tests

@SparkQA
Copy link

SparkQA commented Nov 18, 2016

Test build #68854 has finished for PR 15932 at commit 577502f.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@ash211
Copy link
Contributor

ash211 commented Nov 18, 2016

Yep that's precisely what I was envisioning. Thanks @srowen !

@rxin
Copy link
Contributor

rxin commented Nov 18, 2016

Nice - given it's a tiny change I'd put this in 2.1, unless somebody else objects.

@srowen ?

@srowen
Copy link
Member Author

srowen commented Nov 18, 2016

Sure I'll put it in first thing tomorrow if there are no objections.

@felixcheung
Copy link
Member

Great!

@srowen
Copy link
Member Author

srowen commented Nov 19, 2016

Merged to master/2.1

@asfgit asfgit closed this in db9fb9b Nov 19, 2016
asfgit pushed a commit that referenced this pull request Nov 19, 2016
…able like JavaSparkContext

## What changes were proposed in this pull request?

Just adds `close()` + `Closeable` as a synonym for `stop()`. This makes it usable in Java in try-with-resources, as suggested by ash211  (`Closeable` extends `AutoCloseable` BTW)

## How was this patch tested?

Existing tests

Author: Sean Owen <[email protected]>

Closes #15932 from srowen/SPARK-18448.

(cherry picked from commit db9fb9b)
Signed-off-by: Sean Owen <[email protected]>
@srowen srowen deleted the SPARK-18448 branch November 19, 2016 11:19
asfgit pushed a commit that referenced this pull request Nov 19, 2016
## What changes were proposed in this pull request?

Fix since 2.1.0 on new SparkSession.close() method. I goofed in #15932 because it was back-ported to 2.1 instead of just master as originally planned.

Author: Sean Owen <[email protected]>

Closes #15938 from srowen/SPARK-18448.2.
asfgit pushed a commit that referenced this pull request Nov 19, 2016
## What changes were proposed in this pull request?

Fix since 2.1.0 on new SparkSession.close() method. I goofed in #15932 because it was back-ported to 2.1 instead of just master as originally planned.

Author: Sean Owen <[email protected]>

Closes #15938 from srowen/SPARK-18448.2.

(cherry picked from commit ded5fef)
Signed-off-by: Sean Owen <[email protected]>

/**
* Synonym for `stop()`.
*
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to update this

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah fixed it in a follow up.

uzadude pushed a commit to uzadude/spark that referenced this pull request Jan 27, 2017
…able like JavaSparkContext

## What changes were proposed in this pull request?

Just adds `close()` + `Closeable` as a synonym for `stop()`. This makes it usable in Java in try-with-resources, as suggested by ash211  (`Closeable` extends `AutoCloseable` BTW)

## How was this patch tested?

Existing tests

Author: Sean Owen <[email protected]>

Closes apache#15932 from srowen/SPARK-18448.
uzadude pushed a commit to uzadude/spark that referenced this pull request Jan 27, 2017
## What changes were proposed in this pull request?

Fix since 2.1.0 on new SparkSession.close() method. I goofed in apache#15932 because it was back-ported to 2.1 instead of just master as originally planned.

Author: Sean Owen <[email protected]>

Closes apache#15938 from srowen/SPARK-18448.2.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants